Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add key type to internal relation keys in pg_tde: #317

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

codeforall
Copy link
Collaborator

This commit introduces a key type to internal relation keys, allowing segregation of SMGR and heap_basic internal keys. It resolves the issue of double encryption when both tde_heap and tde_heap_basic access methods are in use.
With this enhancement, pg_tde now supports three types of internal keys: SMGR keys, heap_basic keys, and global keys, improving flexibility and preventing redundant encryption operations.

This commit introduces a key type to internal relation keys, allowing
segregation of SMGR and heap_basic internal keys. It resolves the issue of
double encryption when both tde_heap and tde_heap_basic access methods are
in use.
With this enhancement, pg_tde now supports three types of internal keys:
SMGR keys, heap_basic keys, and global keys, improving flexibility
and preventing redundant encryption operations.
rloc.dbOid = principal_key->keyInfo.databaseId;
rloc.spcOid = DEFAULTTABLESPACE_OID;
rloc.spcOid = DEFAULTTABLESPACE_OID; /* TODO. Revisit*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to test key rotation in non-default table space.

@codeforall codeforall merged commit 5ca8ede into percona:main Oct 21, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants